<?php
namespace Home\Controller;
use Common\Controller\HomeBaseController;
/**
 * 公共控制器
 */
class CommonController extends HomeBaseController{
	/**
	 * 发送手机验证码
	 */
	public function sendCode(){
		  $code=rand(1000,9999);
		  $_SESSION['code']=$code;
		 //手机号码
		 $mobile=M('member')->where('member_id='.$_SESSION['member_id'])->getField('member_mobile');
		 
		 die(json_encode(array("success" => 1, "code" => $code)));
	}
	 



}
